package com.cf.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cf.domain.pojo.Judges;
import com.cf.domain.pojo.PageQuery;
import com.cf.domain.vo.TeamVO;
import com.cf.mapper.JudgesMapper;
import com.cf.service.IJudgesService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @Author lzqinga@126.com
 * @Date 2024/11/9  10:27
 */
@Service
@RequiredArgsConstructor
public class JudgesServiceImpl extends ServiceImpl<JudgesMapper, Judges> implements IJudgesService {

    private final JudgesMapper judgesMapper;
    @Override
    public Page<Judges> selectAllJudges(PageQuery pageQuery) {
        Page<Judges> page = new Page<>(pageQuery.getPageNo(), pageQuery.getPageSize());
        return judgesMapper.selectList(page, null);
    }
}
